xss_security ( $_POST ["next-topic"] ) ) ; $search = $search = $on_mysqli->xss_security ( trim ( $_POST ["search"] ) ) ; if ( isset ( $search ) && $search == true && !is_numeric ( $search ) ){ $inner = array ( "category" , "admins" ) ; $join = array ( "yespress_topic.cat_topic=yespress_category.id_cat" , "yespress_topic.author_topic=yespress_admins.id_admin" ) ; $select_topic = $on_mysqli->select_db_inner ( "topic" , $inner , $join , "where id_topic < $next_topic and title_topic like '%$search%'" , "order by id_topic desc" , "limit 5" ) ; if ( mysqli_num_rows ( $select_topic ) != false ){ while ( $topic_array = mysqli_fetch_assoc ( $select_topic ) ){ print ( "
تاريخ النشر : ".$topic_array ["date_topic"]."
".mb_substr ( $topic_array ["title_topic"] , '0' , '55' , 'UTF-8' )." ... المزيد ..
كـاتـب : ".$topic_array ["user_admin"]." || الـفـئـة : ".$topic_array ["name_cat"]."
" ) ; $prev_topic = $topic_array ["id_topic"] ; } if ( $prev_topic != 1 ){ print ( "
الـمـزيـد .
" ) ; } $on_mysqli->query_close () ; } } else { print ( "
الـصـفـحـة خـطـأ , سـيـتـم تـحـويـلـك إلـى الـصـفـحـة الـرئـسـيـة .
" ) ; } ?>